/*
 * @Description:
 * @Author: Tsingwong
 * @Date: 2020-10-22 19:46:01
 * @LastEditors: Tsingwong
 * @LastEditTime: 2020-10-23 20:52:10
 */

module.exports = {
  entry: {
    main: './main.js'
  },
  module: {
    rules:[
      {
        test: /\.js$/,
        exclude: /(node_modules|bower_components)/,
        use: {
          loader: 'babel-loader',
          options: {
            presets: ['@babel/preset-env'],
            plugins: [['@babel/plugin-transform-react-jsx', {
              pragma: 'creatElement'
            }],]
          }
        }
      }
    ]
  },
  mode: 'development',
  optimization: {
    minimize: false
  }
}
